<template>
  <div>
    <div>我是头条</div>
    <list v-if="dataList.length>0" :dataList="dataList">123</list>
  </div>
</template>
<script lang="ts">
import { getList } from '../actions'
import  list from '../components/list.vue'
import { Vue, Component, } from 'vue-property-decorator'
import { scrollFy } from '../utlis/decorators'
@Component({
  components:{list}
})
@scrollFy
export default class App extends Vue {
  dataList:[] = [];
  created(){
    getList().then(list=>{
      this.dataList = list
    })
  }
  onReachBootom(){
    console.log('jiazai');
  }
}
</script>
